using System;
using System.Collections.Generic;
using System.Text;
using DAO;
using DTO;
using System.Data;
using System.Data.SqlClient;
using System.Data.Sql;

namespace BUS
{
    public class SuaBUS
    {
        public static DataTable LayThongTinSua()
        {
            DataTable dt = SuaDAO.LayThongTinSua();
            return dt;
        }
        #region 1. Inserting
        public static bool InsertSua(SuaDTO sua)
        {
            if (SuaDAO.KiemTraNhapSua(sua.MaHangHoa) == true)
            {
                return false;
            }
             return SuaDAO.NhapSua(sua);
           
        }
        #endregion
    }
}
